<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/jsp/commons/taglibs.jsp"%>
<!DOCTYPE html >
<html>
<head>
</head>
<body>

	<table width="100%" border="0" cellspacing="0" cellpadding="0"
		class="tab">
		<tr>
			<th>序号</th>
			<th>供应商名称</th>
			<th>联系人</th>
			<th>电话</th>
			<th>传真</th>
			<th>手机</th>
			<th>联系地址</th>
			<th>反货地址</th>
			<th>经营产品</th>
			<th>开户行</th>
			<th>银行账号</th>
			<th>账号户名</th>
			<th>创建时间</th>
			<th>操作</th>
		</tr>
		<c:forEach items="${resultDto.result}" var="result" varStatus="sn">
			<tr>
				<td>${sn.index+1 }</td>
				<td>${result.name}</td>
				<td>${result.contactor}</td>
				<td>${result.tel}</td>
				<td>${result.fax}</td>
				<td>${result.phone}</td>
				<td>${result.address}</td>
				<td>${result.repareAddress}</td>
				<td>${result.bisiness}</td>
				<td>${result.bank}</td>
				<td>${result.account}</td>
				<td>${result.accountName}</td>
				<td><fmt:formatDate value="${result.createDate}"
						pattern="yyyy-MM-dd" /></td>
				<td>
				<a href="${ctx }/provider/providerAction!providerUpdateInit.action?provider.id=${result.id}">编辑 </a> &nbsp;&nbsp; 
				&nbsp;&nbsp;</td>
				<td>&nbsp;&nbsp;</td>
			</tr>
		</c:forEach>



	</table>
	<!--分页 begin-->
	<div class="pageleft">共有${resultDto.pagination.total}条数据，当前第${resultDto.pagination.index+1 }页</div>
	<%-- 	<div class="pageleft">
		共有${resultDto.pagination.total }条数据，当前第<span id="pageCodeId"></span>页
	</div> --%>
	<s:if test="resultDto.result!=null && resultDto.result.size()>0">
		<div class="pagenum">
			<a href="#" id="topPage" onclick="queryPage('${ctx}/provider/providerAction!initProvider.action',0);">首页</a>
			  <span id="Paginationa"></span>
			<a href="#" id="endPage" onclick="queryPage('${ctx}/provider/providerAction!initProvideraction','${totalPage-1 }');">尾页</a>
		</div>
		<input type="hidden" id="totalRow" value="${resultDto.pagination.total }" />
		<input type="hidden" id="totalPage" value="${totalPage }" />
		<div class="clear"></div>
   </s:if>
</body>
</html>
